class CreateWishLists < ActiveRecord::Migration
  def self.up
    create_table :wish_lists do |t|
      t.string :name
      t.references :user
      t.integer :state

      t.timestamps
    end

    add_index :wish_lists, [:user_id, :name], :unique => true
  end

  def self.down
    drop_table :wish_lists
  end
end
